package com.smartEdu.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import com.smartEdu.commons.ReqMap;
import com.smartEdu.dao.HomeWorkDao;
import com.smartEdu.mapper.HomeWorkMapper;
import com.smartEdu.model.HomeWorkModel;
import com.smartEdu.model.HomeWorkModel2;
import com.smartEdu.po.HomeWorkPo;

@Repository(value="homeWorkDaoImpl")
public class HomeWorkDaoImpl implements HomeWorkDao{
	@Autowired(required=false)
	@Qualifier("homeWorkMapper")
	private HomeWorkMapper homeWorkMapper;

	@Override
	public List<HomeWorkModel> getHomeWorkDetail(String pk) {
		return homeWorkMapper.getHworkByPK(pk);
	}

	@Override
	public List<HomeWorkModel2> getHomeWork2(ReqMap map) {
		return homeWorkMapper.getHworkById(map.getVals());
	}

	@Override
	public List<HomeWorkPo> getHomeWorkByTid(ReqMap map) {
		return homeWorkMapper.getHworkByTid(map.getVals());
	}
	
	

}
